<%@include file="package.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
long stuno=Long.parseLong(request.getParameter("stuno"));
String sname=request.getParameter("sname");
String sex=request.getParameter("sex");
out.print(stuno);
out.print(sname);
StudentSerive ss=new StudentSerive();
Student stu=new Student();
stu.setSname(sname);
stu.setStuno(stuno);
stu.setSex(sex);
int a=ss.update(stu);
if(a>0){
	out.print("保存成功");
	return;
}else{
	out.print("保存失败");
}
%>


</body>
</html>